package cn.mymall.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * <p>
 * 后台菜单表
 * </p>
 *
 * @author liqilun
 * @since 2022-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Menu extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer parentId;

    private String menuName;

    private String menuUrl;

    private String menuType;

    private Integer sortNum;

    private String status;

    private String icon;

    private Timestamp addTime;

    private Timestamp modifyTime;


}
